<script>
init({
  title: 'Toolbar',
  desc: 'Use Plugin: bootstrap-table-toolbar to allow the advanced search.',
  links: [
    'bootstrap-table.min.css'
  ],
  scripts: [
    'bootstrap-table.min.js',
    'extensions/toolbar/bootstrap-table-toolbar.min.js'
  ]
})
</script>

<template>
  <table
    id="table"
    data-pagination="true"
    data-search="true"
    data-show-columns="true"
    data-advanced-search="true"
    data-id-table="advancedTable"
    data-side-pagination="server"
    data-url="https://examples.wenzhixin.net.cn/examples/bootstrap_table/data"
  >
    <thead>
      <tr>
        <th
          data-field="id"
          data-sortable="true"
        >
          ID
        </th>
        <th
          data-field="name"
          data-sortable="true"
        >
          Item Name
        </th>
        <th
          data-field="price"
          data-sortable="true"
        >
          <i class="fa fa-star"></i> Item Price
        </th>
      </tr>
    </thead>
  </table>
</template>

<script>
  function mounted () {
    $('#table').bootstrapTable()
  }
</script>
